# -*- mode: python; -*-
#
#Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
#

import sys
Import('DnsEnv')
env = DnsEnv.Clone()

SandeshGenFiles = env.SandeshGenCpp('uve.sandesh')
SandeshGenSrcs = env.ExtractCpp(SandeshGenFiles)

except_env = DnsEnv.Clone()
except_env.CppEnableExceptions()

sandesh_objs = []
for src in SandeshGenSrcs:
    objname = src.replace('.cpp', '.o')
    obj = except_env.Object(objname, src)
    sandesh_objs.append(obj)

dns_uve = env.Library('dns_uve',
                      sandesh_objs +
                      ['uve.cc',
                      ])
